package com.spongebob.Vo;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.HashSet;
import java.util.Set;

@Component
@Data
public class Shiro {
    String power;
    String roleName;

   public Set<String> getPermission(){
       String[] list = power.split(",");
       Set<String> set=new HashSet<>();
       for (String s:list
            ) {
           set.add(s);
       }
       return set;
   }
}
